<?php
namespace App\Exceptions;

class ApiException extends \Exception{

    private $data;

    public function __construct($data)
    {
        parent::__construct('请求失败', 0, null);
        $this->data = $data;
    }


    public function getData(){
        return $this->data;
    }
}
